package com.otp.webapp.comparators;

import java.util.Comparator;

import com.otp.model.test.instance.TestItemResponseInstance;

public class CompTestItemResponseInstancesByOrder 
implements Comparator<TestItemResponseInstance>{
	
	public int compare(TestItemResponseInstance ri1, TestItemResponseInstance ri2){
		int order1 = ri1.getOrder();
		int order2 = ri2.getOrder();
		return order1-order2;
	}
}
